@import '~ant-design-vue/es/style/themes/default.less';

html,
body,
#app,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout{
  // background: #f5f7fa;
}


.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}

// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}

// 数据列表 搜索条件
.table-page-search-wrapper {
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      >.ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }

      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

// 头部导航样式
.ant-layout-header {
  @height: 50px;
  height: @height;
  line-height: @height;

  .ant-pro-global-header {
    height: @height;
    box-shadow: none;

    .ant-pro-global-header-trigger {
      i {
        font-size: 18px;
      }
    }

    .ant-pro-global-header-trigger {
      height: @height;
      line-height: @height;
    }

    .ant-pro-global-header-index-right .ant-pro-account-avatar .antd-pro-global-header-index-avatar {
      margin: calc((@height - 24px) / 2) 0;
    }

    .ant-pro-drop-down {
      line-height: @height;
    }
  }
}

// 头部面包屑样式
.page-header-wrap-common {
  .ant-page-header {
    padding: 14px 0 0;
  }
}

// 多标签页样式
.g-multi_tab {
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);

  .ant-tabs-bar {
    padding-top: 0 !important;
  }

  .ant-tabs.ant-tabs-card .ant-tabs-bar .ant-tabs-nav-container {
    margin-bottom: 0;
    height: 34px;
  }

  .ant-tabs.ant-tabs-card .ant-tabs-tab {
    line-height: 34px;
    border: none;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    border-radius: 0;
    margin-right: 0;
    font-size: 13px;

    .ant-tabs-close-x {
      font-size: 10px;
      color: #999;
    }
  }

  .ant-tabs.ant-tabs-card .ant-tabs-tab-active {
    height: 34px;
    // background: #fafafa;
    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      border-top: 2px solid #2f81ff;
    }
  }
}

.ant-layout-footer {
  display: none;
}

.ant-table-tbody>tr>td, .ant-table-thead>tr>th {
  padding: 10px 15px;
  overflow-wrap: break-word;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}